<?php
use_helper('Javascript','Object');
echo javascript_include_tag('ajax');
switch($ajax)
{
	case '1':?>
          <td>Programa:</td>
          <td colspan="6">
		  <?
		  	#echo select_tag('programa',objects_for_select($programas, 'getCpCarrera', 'getNombre'));
            echo select_tag('programa',objects_for_select($datosdecanat, 'getCpCarrera', 'getNombre'),array(
			'onChange' => remote_function(array(
          	  'update'   => 'lin_semano',
              'url'      => 'consultaesp/ajax',  			   
  			  'with' => "'ajax=2&parametro='+this.value"
			  )))
			);
		  	?>
          </td>
          <?break;
	case '2':?>
          <td>Semestre/Año:</td>
          <td colspan="6">
		  <?
		  $hasta = $datos[0]->getSemestre();
		  	for($i=1;$i <= $hasta;$i++)
		  	{
		  		$seman[$i]=$i;
		  	}
		  	echo select_tag('semano',options_for_select($seman));
          ?>
          </td>
          <?break;
	case '3':
			$arrdatos = array(""=>"seleccione un ".$quien);
			foreach($personal as $regper)
			{
				$arrdatos[$regper->getUsuarioId()]=$regper->getNombre()." ".$regper->getApellido();
			}
		  	echo select_tag('atendido',options_for_select($arrdatos));
			break;
	?>
<?
}?>